﻿package com.firewolf.decorator.condiment;

import com.firewolf.decorator.drinks.Beverage;

/**
 * 调料Whip
 * @author liuxing0
 * @function
 * @createtime 2014-8-26
 */
public class Whip extends CondimentDecorator {
	private Beverage beverage ;
	
	public Whip (Beverage beverage){
		this.beverage = beverage;
	}

	@Override
	public String getDescription() {
		return beverage.getDescription()+" , Whip";
	}

	@Override
	public double cost() {
		return 0.5 + beverage.cost();
	}

}
